<script type="text/javascript" language="javascript" src="skin/default/js/jy.js"></script>
<script language="javascript">
function addBookMark()
{
    var nome_sito = "{echo:$siteName;/}";
    var url_sito = "{echo:get_site_domain();/}";
    if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt
        (navigator.appVersion) >= 4))
        window.external.AddFavorite(url_sito, nome_sito);
    else if (navigator.appName == "Netscape")
        window.sidebar.addPanel(nome_sito, url_sito, '');
    else
        parent.Dialog.alert("{echo:lp{pu_house_wrong};/}");
}

function setMyHomepage(url){   //  设置首页 
		 if(!!(window.attachEvent && !window.opera)){
				document.body.style.behavior = 'url(#default#homepage)';
				document.body.setHomePage(url);
		}else{
			if(window.clipboardData && clipboardData.setData){
		        clipboardData.setData('text', url);
		    }else{
		         parent.Dialog.alert('{echo:lp{ah_browser_clipboard};/}');
		    }
		}
}
</script>


<div class="i_top">
    <div class="i_menu">

        <a href="modules.php?app=iIndex" class="left navleft">幸福大门</a>
        <dt><a href="modules.php?app=index_search" class="left navleft">幸福起跑线</a></dt>
        <dt><a href="modules.php?app=iMessage" class="left navleft">幸福宣言</a></dt>
        <a href="article/index.php" class="left navleft">幸福进行时</a>
        <a href="do.php?act=event_index" class="left navleft">幸福之约</a>
        <dt><a href="modules.php?app=iNight" class="left navleft">幸福之夜</a></dt>
        <!--
        <a href="help/help.html" class="left navleft">帮助</a>
        -->
        <!--
        <a href="javascript:addBookMark();" class="right navright"><?php echo $pu_langpackage->pu_collection;?></a>
        <a href="javascript:setMyHomepage('<?php echo get_site_domain();?>');" class="right navright"><?php echo $pu_langpackage->pu_index_set;?></a>
        -->
        <?php
            $user_id=get_sess_userid();//用户ID
            if(empty($user_id)){
        ?>
        <a href="modules.php?app=user_reg" class="right navright"><?php echo $pu_langpackage->pu_register;?></a>
        <a href="index.php" class="right navright"><?php echo $pu_langpackage->pu_logon;?></a>
        <?php } else { ?>
            <a href="do.php?act=logout" class="right navright" hidefocus="true">退出</a>
            <a href="index.php" class="right navright"><!--{echo:lp{ah_homepage};/}-->个人中心</a>
        <? } ?>
    </div>
</div>
{sta:if(basename($_SERVER['SCRIPT_FILENAME'])!='home.php')[exc]}
    <div class="i_search">
        <div class="i_search_c">
            <div class="i_logo"><a href="index.php"><img style="padding-top:5px;" src="skin/default/jooyea/images/logo.png" /></a></div>
            <div class="i_search_t">
            <form class="search_box" action="modules.php" target="_blank" onsubmit="clear_def(this,'{echo:lp{ah_enter_name};/}');">
                <input type="hidden" name="app" value="index_search_list">
                <input id="searchtop_input" type="text" class="i_input" name='memName' value="{echo:lp{ah_enter_name};/}" onblur="inputTxt(this,'set');" onfocus="inputTxt(this,'clean');" />
                <input type="submit" class="i_btn" value="" />
            </form>
            </div>
        </div>
    </div>
<div class="clear"></div>
{end:if/}
</div>
